package com.wkh.project.customer.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.wkh.project.model.entity.customer.CustomerInfo;
import com.wkh.project.model.form.customer.UpdateCustomerInfoForm;
import com.wkh.project.model.form.customer.UpdateWxPhoneForm;
import com.wkh.project.model.vo.customer.CustomerLoginVo;
import jakarta.servlet.http.HttpServletRequest;

public interface CustomerInfoService extends IService<CustomerInfo> {

    /**
     * 微信小程序授权登录接口
     * @param code
     * @return
     */
    Long login(String code);

    /**
     * 获取登录信息
     * @param customerId id
     * @return 返回登录客户的信息
     */
    CustomerLoginVo getCustomerLoginInfo(Long customerId);

    /**
     * 更新客户微信手机号码
     * @param updateWxPhoneForm
     * @return
     */
    Boolean updateWxPhoneNumber(UpdateWxPhoneForm updateWxPhoneForm);

    /**
     * 更新客户基本信息
     * @param updateCustomerInfoForm
     * @return
     */
    Boolean updateCustomerInfo(UpdateCustomerInfoForm updateCustomerInfoForm);

    /**
     * 获取客户OpenId
     * @param customerId
     * @return
     */
    String getCustomerOpenId(Long customerId);
}
